Maybe use a union? union U { double d; byte[double.sizeof] bytes; }
U u; u.bytes = ...; double d = u.d; ... // do something with d // or: U u; u.d = 3.14159; byte[] b = u.bytes[]; ... // do something with b Casting a pointer may run into alignment issues, if your byte[] isn't aligned to a double. T -- Only boring people get bored. -- JM