public static long toInt(Number self) { //if (self is long) return (long)self; return self.longValue(); }