toIntExact
Returns this value as an Int if it is an integer in range.
Throws ArithmeticException if the value has a non-zero fractional component or exceeds the Int range.
Returns this value as an Int if it is an integer in range.
Throws ArithmeticException if the value has a non-zero fractional component or exceeds the Int range.