Probably I may be confused with boxing and unboxing.
Consider the following statement from MSDN:
"Unboxing is an explicit conversion from the type object to a value type or from an interface type to a value type that implements the interface."
So, this implies that unboxing can only be applied to a value type parameter.
so, this is OK.
var concernedInteger = (int)myObject; //unboxing is ok.
Since class is a reference type, this should not work (because unboxing is only applicable to value type)
var concernedClassObject = (TestClass)testClassObject // unboxing is still ok.
My ReSharper does not show any error.
So, my question is "How can you unbox a reference type variable when MSDN says that only value types can be unboxed" ?