Converts a YAML file to an Array