Change rc_copy_alloc_id to do the cast.

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