ProjectExplorer: Remove unneeded cast.

Change-Id: Ic234537e7d446a2054af06aed1abcca87d6d803c
Reviewed-by: Daniel Teske <daniel.teske@digia.com>