catch lexical cast exception