Returns the ReturnValue as a Ref<T>.
[EditorBrowsable(EditorBrowsableState.Advanced)]
public static Ref<T> AsRef<T>(this IMethodReturn return)
If the ReturnValue is already an instance of Ref<T>, it's returned as-is. Otherwise, the value is wrapped in a new Ref<T>.