Centralize cast to u32.