<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def contains_as_type(self, value_type, value):
 """ Checks if this array contains a value. The check before comparison converts elements and the value to type specified by type code. :param value_type: a type code that defines a type to convert values before comparison :param value: a value to be checked :return: true if this array contains the value or false otherwise. """

        typed_value = TypeConverter.to_nullable_type(value_type, value)

        for element in self:
            typed_element = TypeConverter.to_type(value_type, element)

            if typed_value == None and typed_element == None:
                return True
            if typed_value == None or typed_element == None:
                continue
            
            if typed_value == typed_element:
                return True

        return False