Added typemismatch exception