Converts array element into a value defined by specied typecode.
        If conversion is not possible it returns default value.

        :param index: an index of element to get.

        :param value_type: the TypeCode that defined the type of the result

        :param default_value: the default value

        :return: element value defined by the typecode or default value if conversion is not supported.

def get_as_type_with_default(self, index, value_type, default_value):
        """
        Converts array element into a value defined by specied typecode.
        If conversion is not possible it returns default value.

        :param index: an index of element to get.

        :param value_type: the TypeCode that defined the type of the result

        :param default_value: the default value

        :return: element value defined by the typecode or default value if conversion is not supported.
        """
        value = self[index]
        return TypeConverter.to_type_with_default(value_type, value, default_value)