Fix casts from 32bit integer types to 64bit integer types.