private static <T> T retryParseNumber(Object obj, Function<Number, T> getter, T backup) {
    // more expensive parser in case simple valueOf parse fails
    try {
      return getter.apply(PARSER.get().parse(obj.toString()));
    } catch (ParseException e) {
      return backup;
    }
  }
Returns {@code tag} as a long or null if invalid.
planetiler-core/src/main/java/com/onthegomap/planetiler/util/Parse.java