#JC-1198. handling TypeMismatchException.