Add cast in the definition of rc_copy_alloc_id.

2 jobs for ci/copy_aid in 17 minutes and 39 seconds (queued for 3 seconds)