SyntaxFix
Write A Post
Hire A Developer
Questions
If you know that the Integer is not NULL, you can simply do this:
Integer intVal = 1; Long longVal = (long) (int) intVal