Convert Long Int to 4 Hex Bytes

Woop, Thanks so much, if it helps anyone else this seems to be a good starting point:

void loop() {

union {
   unsigned long position;
   unsigned char bytes[4];
} CurrentPosition;

CurrentPosition.position = 270000;

Serial.println (CurrentPosition.bytes[0]);
Serial.println (CurrentPosition.bytes[1]);
Serial.println (CurrentPosition.bytes[2]);
Serial.println (CurrentPosition.bytes[3]);
delay(1000);

}

As a follow-up question,

is putting the int value into an array of hex values the same as putting the hex value in?

as in if I

Serial.write(176);

will this send the same as

Serial.write(0xB0);