core: do proper type conversions for box checksum types