solid-bySweep Curve problems with profile

Hello i am trying to use a revit profile saved in the project and a path from revit to create a solid by sweep.
in the moment i get the following message:
Warnung:Solid.BySweep erwartet Argumenttyp(en) (Curve, Curve), wurde jedoch mit (Autodesk.DesignScript.Geometry.Curve, Revit.Elements.ModelCurve) abgerufen.

How can i convert Curve to objecttype curve that solisolidbysweep.dyn (14.0 KB)
profil_ek.rfa (264 KB)
d.BySweep expects?

Try Element.Geometry for path before Sweep node as i see u r using model curve