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