Add static cast to convert internal id to quint32

Change-Id: Ib65a25b1dd8036dccc5628f1e66cc3df18a7348f
Merge topic 'internal-id-fix' into master

65fe0a81 Add static cast to convert internal id to quint32