Add casts where we convert from wide integer to narrow pointer
3 files changed