properly handle integer conversions for int/uint fields in structs