Returns the value of the long argument; throwing an exception if the value overflows an int.
long
int
Parameters:
value
Returns: the argument as an int
Exceptions:
ArithmeticException
argument
See also: Math.toIntExact(long)
Since: 1.8
Diagram: Math