Check out example codes for "c# convert long to int". It will help you in understanding the concepts better.
Code Example 1
// wraps around
int myIntValue = unchecked((int)myLongValue);
// throws OverflowException
Convert.ToInt32(myValue);
Code Example 2
int result = Convert.ToInt32(long value);
Learn ReactJs, React Native from akashmittal.com