docs: public static java.lang.Long toLong(Object arg) throws NoSuchMethodException {
          if (arg instanceof java.lang.Integer) return boxToLong((long)unboxToInt(arg));
          if (arg instanceof java.lang.Double) return boxToLong((long)unboxToDouble(arg));
          if (arg instanceof java.lang.Float) return boxToLong((long)unboxToFloat(arg));
          if (arg instanceof java.lang.Long) return (java.lang.Long)arg;
          if (arg instanceof java.lang.Character) return boxToLong((long)unboxToChar(arg));
          if (arg instanceof java.lang.Byte) return boxToLong((long)unboxToByte(arg));
          if (arg instanceof java.lang.Short) return boxToLong((long)unboxToShort(arg));
          throw new NoSuchMethodException();
      }