Convert GH_Curve to Curve

I have a short question. What is the best way to convert a object of type GH_Curve to Rhino.Geometry.Curve?
I found the Grasshopper.Kernel.GH_Convert class with the method ToCurve, but I do not understand the syntax.

public static bool ToCurve(
	Object data,
	ref Curve rc,
	GH_Conversion conversion_level

So my question would be. What would be the best way to do the conversion and if it is the GH_Convert.ToCurve Method, could someone explain to me how to work with the syntax?
Thanks for reading my question!
Best wishes, Oliver

GH_Curve.Value will give you the curve stored inside the ghcurve.

1 Like

Thank you David! It seems to work!
Best wishes