code: public <T> T getAsType(String propertyName, Class<T> type) {
      return getAsType(propertyName, type, null);
    }
docs: Gets the assigned value of the named property as an instance of the specified {@link Class} type.
  
  @param <T> {@link Class} type of the return value.
  @param propertyName the name of the property to get.
  @param type Class type of the value to return for the specified property.
  @return the assigned value of the named property as an instance of the specified {@link Class} type.
  @see #getAsType(String, Class, Object)