Do you want to use the cast operator instead of the class cast method:

http://stackoverflow.com/questions/1555326/java-class-cast-vs-cast-operator