public static long parseLong(Object tag) {
    try {
      return tag == null ? 0 : tag instanceof Number number ? number.longValue() : Long.parseLong(tag.toString());
    } catch (NumberFormatException e) {
      return retryParseNumber(tag, Number::longValue, 0L);
    }
  }
Returns {@code tag} as a long or 0 if invalid.
planetiler-core/src/main/java/com/onthegomap/planetiler/util/Parse.java