public static Long longValue(final Object value) {
    if (value instanceof Number) {
      return ((Number) value).longValue();
    }
    return parseLong(String.valueOf(value));
  }
The NumberUtils class is a utility class for working with numbers.
<p>

@see java.lang.Number
@since GemFire 8.0
geode-web-api/src/main/java/org/apache/geode/rest/internal/web/util/NumberUtils.java