<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _cast_tuple(self, values):
 """ Convert values of the tuple from raw bytes to native python types :param values: tuple of the raw database values :type value: tuple of bytes :return: converted tuple value :rtype: value of native python types (bytes, int, unicode (or str for py3k)) """

        result = []
        for i, value in enumerate(values):
            if i < len(self.field_types):
                result.append(self._cast_field(self.field_types[i], value))
            else:
                result.append(self._cast_field(self.field_types[-1], value))

        return tuple(result)