All transmission is in binary bytes so it's not clear what you are asking? What data are you trying to send?
The .writeValue function to send an arrary of bytes is
int writeValue(const uint8_t value[], int length);
And you can use this to send a generic chunk of data cast to bytes. There is a data size limit of 20 bytes based on a BLE core specification of 33 maximum bytes in the payload.
.writeValue((uint8_t *)&myData, sizeof(myData));