code: public Long getLong(String key, Long defaultValue) {
          Object o = get(key);
          if (o != null) {
              if (o instanceof Long) {
                  return (Long) o;
              } else if (o instanceof Integer) {
                  return new Long((Integer)o);
              }
          }
          return defaultValue;
      }
docs: /*
  getLong will successfully return for both Long values and Integer values
  it will convert the Integer to a Long