better support for bitcasts