Don't use cast in C-style, use static_cast