JERSEY-2471 Fix some javac type cast warnings
Merge pull request #77 from loxal/master

JERSEY-2471 Fix some javac type cast warnings