toIntExact
ported from Math.toIntExact
Returns the value of the long argument, throwing an exception if the value overflows an int.
Return
the argument as an int
Since
1.8
Parameters
value
the long value
Throws
if the argument overflows an int