[TypeCast] Bug fixing.
Fix the issue of casting derived type.

* [NABI-RSA] TDIS-5883