public static GType getType(final Object object) {
        if (object instanceof String) return STRING;
        else if (object instanceof Byte) return BYTE;
        else if (object instanceof Short) return SHORT;
        else if (object instanceof Character) return CHARACTER;
        else if (object instanceof Integer) return INTEGER;
        else if (object instanceof Boolean) return BOOLEAN;
        else if (object instanceof Float) return FLOAT;
        else if (object instanceof Double) return DOUBLE;
        else if (object instanceof Long) return LONG;
        else if (object instanceof Map) return MAP;
        else if (object instanceof List) return LIST;
        else if (object instanceof Set) return SET;
        else if (object instanceof Vertex) return VERTEX;
        else if (object instanceof BigInteger) return BIG_INTEGER;
        else if (object instanceof BigDecimal) return BIG_DECIMAL;
        else if (object instanceof OffsetDateTime) return DATETIME;
        else if (object instanceof UUID) return UUID;
        else return UNKNOWN;
    }
Convert an object to a matching {@link GType} and if not matched return {@link GType#UNKNOWN}.
gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/step/GType.java