Check out example codes for "casting in c". It will help you in understanding the concepts better.

Code Example 1

#include <stdio.h>
#include <stdlib.h>
int main(){
  int x = 7, y = 5;
  float z;
  z = (float)x / (float)y;   /*Here the value of z is 1.400000*/
  return 0;
}

Code Example 2

(new_type) name_var;

Learn ReactJs, React Native from akashmittal.com