class java.lang.Long cannot be cast to class java.lang.Integer code example
Example 1: java.lang.long cannot be cast to java.lang.integer
Long.valueOf(x).intValue()
Example 2: java.lang.long cannot be cast to java.lang.integer
Integer.valueOf(x).longValue()