public static boolean valueInstanceOf(final Object o, final GType type) {
        return o instanceof GValue && ((GValue) o).getType() == type;
    }
Tests if the object is a {@link GValue} and if so, checks the type of the value against the provided
{@link GType}.
gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/step/GValue.java