integer save into single bytes

GekoCH:
So I tryed this but it doesn't work...

long number = 115730;

data[0] = (byte)(number >> 24);
data[1] = (byte)(number >> 16);
data[2] = (byte)(number >> 8);
data[3] = (byte)(number);

I don't see anything wrong with the original construction (aside from the ':' vs ';', which I hope is a transcription error.)
In what was does it "not work"?