NH-3237 - Port-back removing cast operator in max and min aggregates