Force palette index to int32