diff --git a/sflphone-common/src/iax/iaxvoiplink.cpp b/sflphone-common/src/iax/iaxvoiplink.cpp
index 18cbf04dfdc043845d6fc2bd138c54e531d603f8..c1fb9696ab361de56888878658ff8a77b517939a 100644
--- a/sflphone-common/src/iax/iaxvoiplink.cpp
+++ b/sflphone-common/src/iax/iaxvoiplink.cpp
@@ -427,7 +427,7 @@ IAXVoIPLink::sendRegister (std::string id UNUSED) throw(VoipLinkException)
 {
     _debug ("IAX: Sending registration");
 
-    IAXAccount *account = dynamic_cast<IAXAccount *> (getAccountPtr());
+    IAXAccount *account = getAccountPtr();
 
     if (!account) {
     	throw VoipLinkException("Account is NULL in send register");
@@ -473,7 +473,7 @@ IAXVoIPLink::sendUnregister (std::string id UNUSED) throw(VoipLinkException)
 {
     _debug ("IAXVoipLink: Send unregister");
 
-    IAXAccount *account = dynamic_cast<IAXAccount*> (getAccountPtr());
+    IAXAccount *account = getAccountPtr();
 
     if (!account) {
         throw VoipLinkException("Account is NULL in send unregister");
@@ -759,7 +759,7 @@ IAXVoIPLink::iaxOutgoingInvite (IAXCall* call)
 
     call->setSession (newsession);
 
-    account = dynamic_cast<IAXAccount*> (getAccountPtr());
+    account = getAccountPtr();
     username = account->getUsername();
     strNum = username + ":" + account->getPassword() + "@" + account->getHostname() + "/" + call->getPeerNumber();
 
@@ -1248,7 +1248,7 @@ void IAXVoIPLink::updateAudiolayer (void)
     _mutexIAX.leaveMutex();
 }
 
-Account* IAXVoIPLink::getAccountPtr (void)
+IAXAccount* IAXVoIPLink::getAccountPtr (void)
 {
-    return Manager::instance().getAccount (_accountID);
+    return dynamic_cast<IAXAccount *> (Manager::instance().getAccount (_accountID));
 }
diff --git a/sflphone-common/src/iax/iaxvoiplink.h b/sflphone-common/src/iax/iaxvoiplink.h
index 0935f95b28d7ab51383a81113595f7a9db7d7964..f743d1e032cbf25214116748143492dd4c12c956 100644
--- a/sflphone-common/src/iax/iaxvoiplink.h
+++ b/sflphone-common/src/iax/iaxvoiplink.h
@@ -48,6 +48,8 @@ class IAXCall;
 class AudioCodec;
 class AudioLayer;
 
+class IAXAccount;
+
 /**
  * @file iaxvoiplink.h
  * @brief VoIPLink contains a thread that listen to external events
@@ -218,7 +220,7 @@ class IAXVoIPLink : public VoIPLink
 
     private:
 
-        Account* getAccountPtr (void);
+        IAXAccount* getAccountPtr (void);
 
         /*
          * Decode the message count IAX send.