I decided NOT to do this. The argument is basically that the enum values have no explicitly stated int-value, i.e. if the mesh-element-enum changes at some time in the future you have to remember to adapt this specific method here because it will give false results otherwise. The way the code is written now will still give correct results for the elements compared here.