- Changed old-C-style casts to C++ static_casts.

Signed-off-by: Jan Nemecek <Nemecek.Jan@seznam.cz>