<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def value_to_string(self, obj):
 """Return value from object converted to string properly"""

        value = getattr(obj, self.attname)
        return self.get_prep_value(value)