$ERR_INVCAST

617

Invalid cast operation

The type used to cast a variable is not the class or an ancestor class of the object stored in the variable, or it does not have an explicit conversion operator.