Converts the layered sections to an instance of T.
Converts the layered sections to an instance of clazz.