GEC-110 Fix CI linting job
The CI linting job currently does not check C++ formatting. It gives an error that clang-format-14 is not found and then exits normally, as if everything's ok.
This MR also addresses some compiler warnings related to narrowing conversions.
Edited by Maik Nijhuis