'Convert the text of a value into the YAML value.
This is used for type conversion for default values.
Not particularly efficient, but there doesnt seem to be a direct API.'

def __typed_value(self, value_text):

    return yaml.load('x:    {0}'.format(value_text), Loader=yaml.Loader)['x']
