public static Number toWrapper(long l) { if (l >= Integer.MIN_VALUE && l <= Integer.MAX_VALUE) { return toWrapper((int) l); } else { return Long.valueOf(l); } }
public static Object wrapAsObject(long i) { return Long.valueOf(i); }