code: public static <T> T getField(Object obj, String string, Class<?> clazz, Class<T> fieldType) {
  		try {
  			final Field field = clazz.getDeclaredField(string);
  			field.setAccessible(true);
  			final Object value = field.get(obj);
  			return fieldType.cast(value);
  		} catch (Exception exception) {
  			throw new Error(exception);
  		}
  	}
docs: Replies the value of the field.
  
  @param <T> the field type.
  @param obj the instance.
  @param string the field name.
  @param clazz the container type.
  @param fieldType the field type.
  @return the value.