Thanks for the quick response.
I have not learned unions yet...will be reading up on them today.
From what I have read so far, just something like this:
union {
UINT32 myInt32;
UINT8[4] myBytes;
} var;
var.myBytes[0] = Buffer[0];
...
var.myBytes[3] = Buffer[3];
someFunction(var.myInt32);//function expects 32 bit int parameter
myInt32 and myBytes share same memory, but at compile, they allow different ways to access memory?
My question still remains, will what I did by casting to a UINT32 pointer still work?
Thanks.