cast sockets to proxysockets