Use proper casting in socket unit test

Merged Mark Andrews requested to merge 710-fix-socket-test-v9_12 into v9_12

Merge request reports