Issue with transmute

Maybe this Thread gives you some more ideas to solve your specific case: Best way to get the 3 bytes of a small u32?