code: public <V> V getObject(final String key, final Class<V> type) {
          final Object obj = this.values.get(key);
          return type.cast(obj);
      }
docs: Get a value as a string.
  
  @param key the key for looking up the value.
  @param type the type of the object
  @param <V> the type