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

* [NABI-RSA] TDIS-5814, TDIS-7140