Improved message for mismatched type exception