Add casts to uint32_t to match prototype for sid_append_rid().