public int getInt() {
        return Integer.parseInt(resultObject.toString());
    }
Gets the result item by coercing it to an {@code int}.

@throws NumberFormatException if the value is not parsable as an {@code int}.
gremlin-driver/src/main/java/org/apache/tinkerpop/gremlin/driver/Result.java