VS2017 build fix (static_cast double to enum in tests)
VS2017 (and possibly VS2019) aren't able to cast directly from double to an enum type, only from integral types to enum types.
Backport: release
VS2017 (and possibly VS2019) aren't able to cast directly from double to an enum type, only from integral types to enum types.
Backport: release