docs: public Long getAsLong(String key) {
          Object value = mValues.get(key);
          try {
              return value != null ? ((Number) value).longValue() : null;
          } catch (ClassCastException e) {
              if (value instanceof CharSequence) {
                  try {
                      return Long.valueOf(value.toString());
                  } catch (NumberFormatException e2) {
                      logger.log(Level.SEVERE,"Cannot parse Long value for " + value + " at key "+ key);
                      return null;
                  }
              } else {
                  logger.log(Level.SEVERE,"Cannot case value for "+ key + "to a Long "+ value,e);
                  return null;
              }
          }
      }