Adding the new kind of cast in the aggregates querysets.