1st step towards a more flexible WhereType evaluation implementation