Rhinocommon C# RhinoObject cast to Geomtry

Hi there. I’m working with AutoMirror which find all Objects in specific layers and make them mirrored.
But Geometry.Transform.mirror doesn’t work for RhinoObjects so I have to cast every RhinoObject to Geometry.

      foreach (RhinoObject obj in selected_objects)
                Transform mir = Transform.Mirror(pt1, mirrorvec);
// how can I get each RhinoObject depending on their Objecttype???


I googled for 2 days but I blocked. Somebody help me…

RhinoObject has a property Geometry you want to use.

var geom_obj = obj.Geometry;

Wow… Super Easy…
Thank you for reply!