docs: public static Optional<Boolean> toBoolean(Object arg) {
          if ( arg instanceof Boolean ) {
              return Optional.of( (Boolean) arg );
          }
          else if(arg instanceof String) {
              if("true".equalsIgnoreCase( (String)arg )) {
                  return Optional.of( Boolean.TRUE );
              }
              else if("false".equalsIgnoreCase( (String)arg )) {
                  return Optional.of( Boolean.FALSE );
              }
          }
          return Optional.empty();
      }