Use static_cast here

2 jobs for master in 15 minutes and 54 seconds (queued for 117 minutes and 54 seconds)
Status Job ID Name Coverage
  Build
failed #88742
build_clazy_clang_tidy

00:06:45

passed #88741
linux kf5-qt5 qt5.15

00:09:09

0.0%
 
Name Stage Failure
failed
build_clazy_clang_tidy Build
52 warnings generated.
make[1]: *** [CMakeFiles/Makefile2:192: src/CMakeFiles/KF5EventViews.dir/all] Error 2
make: *** [Makefile:160: all] Error 2
Uploading artifacts for failed job
Uploading artifacts...
WARNING: JUnitTestResults.xml: no matching files
ERROR: No files to upload
Cleaning up file based variables
ERROR: Job failed: exit code 1