public static <T> T getFrom(final Object o) {
        return o instanceof GValue ? ((GValue<T>) o).get() : (T) o;
    }
If the object is a {@code GValue} then get its value, otherwise return the object as-is.
gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/step/GValue.java