code: public static <T> T loadAs(File f, Class<T> clazz) throws IOException {
      return getSnakeYaml().loadAs(new FileReader(f), clazz);
    }
docs: Load an API object from a YAML file. Returns a concrete typed object using the type specified.
  
  @param f The YAML file
  @param clazz The class of object to return.
  @return An instantiation of the object.
  @throws IOException If an error occurs while reading the YAML.