avoid accessing raw pointers, using dynamic_pointer_cast
avoid accessing raw pointers, using dynamic_pointer_cast

svn path=/branches/work/akonadi-ports/kdepim/; revision=1031627

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