I have moved your thread to a more appropriate category.

All primitives have wrapper classes...in the case of a long primitive you've got the Long class. You can use this class in place of the...