How to convert a Long value into an Integer value in Java?
try this:
Int i = Long.valueOf(L)// L: Long Value