Сonverting int to int in C#

Forums:

Int64 d1 = Int64.MaxValue;
//d1 is 9223372036854775807
Int32 d2 = (Int32)d1;
//d2 is -1
int d3 = (int)d1;
//d3 is -1

d1 = 10;
d3 = (int)d1;
//d3 is 10

Int32 d4 = Int32.MaxValue;
//d4 is 2147483647
Int64 d5 = d4;
//d5 is 2147483647