getSection
Reads a specific section from a YAML file and converts it to the specified type.
Return
The section converted to the specified type.
Parameters
T
The type to which the section should be converted.
filePath
The path to the YAML file.
section
The section in the YAML file to be read.
Throws
if the section is not found in the YAML file.