I\'m using Spring, at one point I would like to cast the object to its actual runtime implementation.
Example:
Class MyClass extends NotMyClass {
Basically when you use AOP in Spring, Spring build a Proxy for you. You have two option:
The key point here is that when an aspect is applied on your bean Spring will instance a proxy and if you try to perform a cast you will get an exception.
I hope tha this can help you