Cleaned up the code a bit by adding some static_casts.
Cleaned up the code a bit by adding some static_casts.

svn path=/trunk/KDE/kdepim/; revision=975472

lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi