docs: public Boolean getAsBoolean(String key) {
          Object value = mValues.get(key);
          try {
              return (Boolean) value;
          } catch (ClassCastException e) {
              if (value instanceof CharSequence) {
                  return Boolean.valueOf(value.toString());
              } else if (value instanceof Number) {
                  return ((Number) value).intValue() != 0;
              } else {
                  logger.log(Level.SEVERE, "Cannot cast value for " + key + " to a Boolean: " + value, e);
                  return false;
              }
          }
      }