code: private JSONObject getAsJsonObject(Object pFrom) {
          JSONAware jsonVal = toJSON(pFrom);
          if (!(jsonVal instanceof JSONObject)) {
              throw new IllegalArgumentException("Expected JSON type for a TabularData is JSONObject, not " + jsonVal.getClass());
          }
          return (JSONObject) jsonVal;
      }
docs: =========================================================================================================