* @param clazz the expected class
* @return Object representing the YAML data
*/
@SuppressWarnings("unchecked")
public static <T> T loadYaml(String name, Class<T> clazz) {
Yaml yaml = new Yaml(new CustomClassLoaderConstructor(clazz, Yalp.classloader));
yaml.setBeanAccess(BeanAccess.FIELD);
return (T) loadYaml(name, yaml);
}