Add needed cast to compile using python versions <2.6
Add needed cast to compile using python versions <2.6

Reviewer: Hugo Parente Lima <4149ba590530c5cd07e8f8a561f4e06e17776179@gmail.com>
          Marcelo Lira <marcelo.lira@openbossa.org>

M4rtinK/pyside-bb10,M4rtinK/pyside-android,RobinD42/pyside,PySide/PySide,M4rtinK/pyside-bb10,M4rtinK/pyside-bb10,qtproject/pyside-pyside,RobinD42/pyside,M4rtinK/pyside-bb10,pankajp/pyside,RobinD42/pyside,pankajp/pyside,PySide/PySide,BadSingleton/pyside2,gbaty/pyside2,enthought/pyside,qtproject/pyside-pyside,IronManMark20/pyside2,M4rtinK/pyside-android,BadSingleton/pyside2,PySide/PySide,gbaty/pyside2,RobinD42/pyside,pankajp/pyside,IronManMark20/pyside2,RobinD42/pyside,gbaty/pyside2,BadSingleton/pyside2,enthought/pyside,pankajp/pyside,PySide/PySide,gbaty/pyside2,M4rtinK/pyside-android,IronManMark20/pyside2,BadSingleton/pyside2,M4rtinK/pyside-android,M4rtinK/pyside-android,pankajp/pyside,IronManMark20/pyside2,qtproject/pyside-pyside,enthought/pyside,PySide/PySide,RobinD42/pyside,RobinD42/pyside,enthought/pyside,enthought/pyside,enthought/pyside,IronManMark20/pyside2,qtproject/pyside-pyside,enthought/pyside,M4rtinK/pyside-bb10,BadSingleton/pyside2,gbaty/pyside2,M4rtinK/pyside-android,M4rtinK/pyside-bb10,qtproject/pyside-pyside