Convert Line to Curve

Hello,
There was a related topic, but looks like this method dosn’t work, for Revit 23 or Dynamo 2.16. So my question is there other way to convert from line to curve OR from line to element?

You should be able to put a Line in a Curve input.
So just connect Line.ByStartPointDirectionLength to ElementCurveReference.ByCurve

This has to do with inherentance. A Line is a Curve, but a Curve is not a Line.

@Joelmick
I ve tryed, but it doesn’t work.

ModelCurve.ByCurve node solved my problem.