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

* [NABI-RSA] TDIS-5883
Merge pull request #225 from wcwang/next

[TypeCast] Bug fixing.