java - Need to return a int from a method using long data types -


i need return int method, method uses longs declared earlier in script. can explain how can use autoboxing return int method? @ appreciated.

like this

return (int) somelong; 

Comments