Code Smell fixed for Type Casting (Shanmukha Raju Ramayanam)