GeometryBase equivalent in in Grasshopper.Kernel.Types?

Hi,

What type should I cast to, in order to convert GeometryBase to a type in a namespace Grasshopper.Kernel.Types?

CONTEXT: I want to ouput GeometryBase from a grasshopper component using GH_Strcuture

I am trying to add GeometryBase to GH_Structure, I thought IGH_GeometryGoo is the right type, but it is not:

GH_Structure<Grasshopper.Kernel.Types.........> all_geo_groups = new GH_Structure<Grasshopper.Kernel.Types.........>();

That’s what I was thinking too.
Maybe you can use “Grasshopper.Kernel.GH_Convert.ToGoo” before storing your objects.

In documentation it says:

This function calls a whole sh*tload of other conversion functions. IT IS SLOW

Is there any alternative ?

Yes it is very slow, it is true.
It will try to convert the data into all Goo grasshopper classes, from Boolean to Brep, passing vectors, force fields, Subd, etc… until the conversion succeeds.
But I don’t know of any other solution to pass a GeometryBase type in Goo.
sorry

Maybe new GH_GeometricGoo(your Geometry)?

This requires the type but thank you for the answer.

This indeed did the trick
all_geo_groups.Append(Grasshopper.Kernel.GH_Convert.ToGeometricGoo(nest_geo.geometry[id]), new GH_Path(i));