[genericgeometry] avoid clang warnings about "< 0"
Add explicit conversion, needed when using high precision types like boost::multiprecision