remove unsigned int field, and cast when necessary