SortExpression sorter = (HelperClasses.DocumentFields.CreatedDate | SortOperator.Descending);
Following the documentation I expected this to be simple, but CreatedDate is of type EntityField2 and so an exception is thrown trying to convert it to SortExpression.
What am I missing?