Rid of C-Style cast for C++ cast