If that's the case, `object.regular_field_unsigned` should be replaced with `object.regular_field_signed` in these two lines. It's not really important which field is used, but requiring that cast makes things confusing.