I am working on a generic class and I want to use Class.cast() to do some casting to avoid those nasty unchecked cast warnings or the @SupressWarning annotation on the methods.
I think Class.cast() should be basically the same thing as casting directly. But like all reflection methods, it might not be the case. Does anyone know the exact different between them?