lang nach int java 8
import static java.lang.Math.toIntExact;
long foo = 10L;
int bar = toIntExact(foo);
2 Programmers 1 Bug
import static java.lang.Math.toIntExact;
long foo = 10L;
int bar = toIntExact(foo);
long foo = 10L;
int bar = (int) foo;