default @NotNull OptionalDouble asDouble() {
      try {
        return OptionalDouble.of(Double.parseDouble(this.value()));
      } catch (final NumberFormatException ex) {
        return OptionalDouble.empty();
      }
    }
Try and parse this argument as a {@code double}.

<p>The optional will only be present if the value is a valid double.</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