Break an ambiguity in operator resolution by explicit casting

This ambiguity was introduced in dune-common by patch
d6f0073913be8bda7e5ea2eb5ec78ed2bf37fbc7