Replace C-style cast by C++ style cast.
Initialise m_num member