Arithmetic between floating-point types and enumeration types is deprecated in c++20. This MR adds an explicit cast of the enum to int.
int