public static OptionalLong optionalLong(Inspector field) {
        return isPresent(field) ? OptionalLong.of(field.asLong()) : OptionalLong.empty();
    }
Throws {@link JsonParseException} on invalid JSON.
vespajlib/src/main/java/com/yahoo/slime/SlimeUtils.java