[Contact] Added 'instanceof' checking and fixed the TypeMismatchError issue.

* [NABI-RSA] TDIS-5814, TDIS-7140
Merge pull request #333 from wcwang/next

[Contact] Added 'instanceof' checking