VirtualWire

So, if I want to send a number 2, then how do I wrote it in array of 8 bits ??? Thanks

uint8_t msg[1] = 2;
vw_send(msg, 1);