Fix cppcheck false positives in our ARM build by using static_cast instead of C-style casts.
static_cast
cc @sroe