You can check out this new method that has been added with Java 8 to do just what you asked for.
import static java.lang.Math.toIntExact;
long foo = 10L;
int bar = toIntExact(foo);
Will return an ArithmeticException in the event of an overflow.
check out: Math.toIntExact(long)
Some other overflow safe methods have been attached to Java 8. They end with exact.