In time the project grows, the ignorance of its devs it shows, with many a convoluted function, it plunges into deep compunction, the price of failure is high, Washu's mirth is nigh.
Casting anything that involves an inheritance hierarchy, using C casts, is dangerous. More importantly, casting something so that you can get access to its internals when you hid those internals away suggests you've got a design issue that you should take a strong hard look at.
In time the project grows, the ignorance of its devs it shows, with many a convoluted function, it plunges into deep compunction, the price of failure is high, Washu's mirth is nigh.
If you're going to be casting the pointer, use a static_cast (in this case). As far as how to improve it, I don't know what INetworkSystem looks like, nor what you're using this vector of sockets for.
In time the project grows, the ignorance of its devs it shows, with many a convoluted function, it plunges into deep compunction, the price of failure is high, Washu's mirth is nigh.