incorrect cast in UdpModule