You can use copyasvalueref() here.