code: public <O> O get(Class<O> clazz, String key, boolean deserialize){
          if(deserialize)
              return gson.fromJson(get(String.class,key),clazz);
          else
              return get(clazz,key);
      }
docs: Retrieve a specific element from this object.
  @param clazz type of object to be retrieved. If type given does not match a classcast exception will be thrown.
  @param key key of object to be retrieved.
  @param deserialize specify of whether or not this object needs to be manually deserialized(stored as a json string).
  @return element of type specified corrosponding to the given key.