cannot convert long to int in c# code example
Example: c# convert long to int
// wraps around
int myIntValue = unchecked((int)myLongValue);
// throws OverflowException
Convert.ToInt32(myValue);
// wraps around
int myIntValue = unchecked((int)myLongValue);
// throws OverflowException
Convert.ToInt32(myValue);