get_bits: remove useless pointer casts