MethodError: Convert Ref value between GPU and CPU

Can anyone teach me how to overload the convert function to remove this error, using CUDA?

MethodError: Cannot `convert` an object of type CUDA.CuRefValue{Int64} to an object of type Base.RefValue{Int64}

Kind regards