Hi,
another solution is defining a union:
union Number
{
long num;
byte barray[4];
} NN;
then set the long field and get the byte array:
NN.num = 123466L;
byte b0 = NN.data[0];
byte b1 = NN.data[1];
byte b2 = NN.data[2];
byte b3 = NN.data[3];