A generic YAML converter