Inconvertible types; cannot cast 'java.lang.Long' to '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()