docs: public static boolean parseBoolean(Object val)
    {
      if (val instanceof String) {
        return Boolean.parseBoolean((String) val);
      } else if (val instanceof Boolean) {
        return (boolean) val;
      } else {
        if (val == null) {
          throw new NullPointerException("Input is null");
        } else {
          throw new ISE("Unknown type [%s]", val.getClass());
        }
      }
    }