Cosmetics: Use CheckPointer.
Use conversion constructors to work-around confusing AStyle styling.
Use a bitcheck instead of casting (WIP).

Fixes CID #965944.