Thanks Darrel!
Looks like it's working :-)
So, as long as the array of bits is longer than 8 this method is safe to use, nice to know!

/Henrik.