I have code like:
var t = SomeInstanceOfSomeClass.GetType();
((t)SomeOtherObjectIWantToCast).someMethodInSomeClass(...);
That won't do, the compiler returns an error about the (t) saying Type or namespace expected. How can you do this?
I'm sure it's actually really obvious....