public <T> T get(final Class<? extends T> clazz) {
        return clazz.cast(this.resultObject);
    }
Gets the result item by casting it to the specified {@link Class}.
gremlin-driver/src/main/java/org/apache/tinkerpop/gremlin/driver/Result.java