Communication Between UE4 and a Python UDP Server

Is there any way to modify this code to send integers and floats in the UDP packet instead of a string? I just barely understand C++ code enough to keep my head above water, so I wouldn’t know how to change the lines myself.