Explicitly cast an argument for rb_end_proc.

For compatibility with both MRI and rbx.