default @NotNull OptionalInt asInt() {
      try {
        return OptionalInt.of(Integer.parseInt(this.value()));
      } catch (final NumberFormatException ex) {
        return OptionalInt.empty();
      }
    }
Try and parse this argument as an {@code int}.

<p>The optional will only be present if the value is a valid integer.</p>

@return an optional providing the value of this argument as an integer
@since 4.10.0
text-minimessage/src/main/java/net/kyori/adventure/text/minimessage/tag/Tag.java