docs: public static Optional<? extends Number> toNumber(Object arg) {
          if ( arg instanceof Number ) {
              return Optional.of( ( (Number) arg ));
          }
          else if(arg instanceof String) {
              try {
                  return Optional.of( (Number) Integer.parseInt( (String) arg ) );
              }
              catch(Exception ignored) {}
              try {
                  return Optional.of( (Number) Long.parseLong( (String) arg ) );
              }
              catch(Exception ignored) {}
              try {
                  return Optional.of( (Number) Double.parseDouble( (String) arg ) );
              }
              catch(Exception ignored) {}
              return Optional.empty();
          }
          else {
              return Optional.empty();
          }
      }