docs: public final <T extends GraphObject> T getGraphObjectAs(Class<T> graphObjectClass) {
          if (graphObject == null) {
              return null;
          }
          if (graphObjectClass == null) {
              throw new NullPointerException("Must pass in a valid interface that extends GraphObject");
          }
          return graphObject.cast(graphObjectClass);
      }