<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_type_with_default(value_type, value, default_value):
 """ Converts value into an object type specified by Type Code or returns default value when conversion is not possible. :param value_type: the TypeCode for the data type into which 'value' is to be converted. :param value: the value to convert. :param default_value: the default value to return if conversion is not possible (returns None). :return: object value of type corresponding to TypeCode, or default value when conversion is not supported. """

        result = TypeConverter.to_nullable_type(value_type, value)
        return result if result != None else default_value