An ESQL expression can have at most five CAST operations for a particular data type.
Rewrite your ESQL expressions so that they do not have more than the maximum number of CAST operations.