OFTCPSocket: Fix missing cast