Replace C-style cast with static_cast
Merge pull request #194 from Dmitry-Me/fixCStyleCast

Replace C-style cast with static_cast