As in this example:
switch ( myObj.GetType ( ) ) { case typeof(MyObject): Console.WriteLine ( \"MyObject is here\" ); break; }
Why don't you just tostring() it?