Send data serialized in the right type