c# long to int

C#
int result =  Convert.ToInt32(long value);
Source

Also in C#: