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

Code Example 1

int main()
{
  short a = 2000;
  int b;
  b = (int)a; // c-like cast notation
  b = int(a); // functional notation
}

Learn ReactJs, React Native from akashmittal.com