<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def to_native(self, value):
 """Return the value as a dict, raising error if conversion to dict is not possible"""

        if isinstance(value, dict):
            return value
        elif isinstance(value, six.string_types):
            native_value = json.loads(value)
            if isinstance(native_value, dict):
                return native_value
            else:
                raise ConversionError(u'Cannot load value as a dict: {}'.format(value))