unnecessary cast removal

Also compiler settings have been updated to report warnings.

Change-Id: I53b439541934478f2dade63233de55f603de42c7
Task-Url: https://bugs.eclipse.org/bugs/show_bug.cgi?id=475914
6 files changed