Fix warning about unused variable in IOS.

Convert Q_PID to int using utility function.

Change-Id: Iab18b1b4044e323e14e63f9159a82ad5040117ce
Reviewed-by: Fawzi Mohamed <fawzi.mohamed@digia.com>