docs: public static double asDouble(Object value) {
          if (value instanceof Number) {
              return ((Number) value).doubleValue();
          } else if (value instanceof Numeric) {
              return ((Numeric) value).asInteger();
          } else if (value instanceof CharSequence) {
              try {
                  return Double.parseDouble(value.toString());
              } catch (NumberFormatException nfe) {
                  throw new IncompatibleValueException("Unable to parse string \"" + Strings.escape(value.toString()) +
                                                       "\" to a double", nfe);
              }
          }
          throw new IncompatibleValueException(
                  "Unable to convert " + value.getClass().getSimpleName() + " to a double");
      }