Converts the value of the specified double-precision floating-point number to an equivalent 32-bit signed integer.
value, rounded to the nearest 32-bit signed integer. If value is halfway between two whole numbers, the even number is returned; that is, 4.5 is converted to 4, and 5.5 is converted to 6.
Type Reason OverflowException value is greater than int.MaxValue or less than int.MinValue.