added UnexpectedTypeException class