<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def ndstype(self):
 """NDS type integer for this channel. This property is mapped to the `Channel.type` string. """

        if self.type is not None:
            return io_nds2.Nds2ChannelType.find(self.type).value