CodeProject Unable to cast object of type 'xxx.ClassA' to type 'xxx.ClassB'. Often C# developers get this kind of exception at runtime due to invalid cast operation. There are two ways of casting an object to a different type of object.
... a developer blog