How to bake curves with c# component

I want to bake curves from grasshopper to Rhinoceros.
So I wrote next code.

    protected override void SolveInstance(IGH_DataAccess DA)
        List<Curve> crv = new List<Curve>();
        if (!DA.GetDataList(1, crv)) return;

        var t = true;
        if (!DA.GetData(0, ref t)) return;

        Rhino.DocObjects.Tables.ObjectTable ot = Rhino.RhinoDoc.ActiveDoc.Objects;
        if (t)

But the following error occurs.

Cannot convert from ‘System.Collections.Generic.List<Rhino.Geometry.Curve>’ to ‘Rhino.Geometry.GeometryBase’

Could anyone please tell me the solution?

foreach(Curve c in crv) //since it is a list you have to loop it
    ot.AddCurve(c); //you could use .Add() since a curve is also a GeometryBase.

That is great help, thank you Dani!