Add a SuppressWarnings annotation to suppress unchecked casts, plus a test.
Merge pull request #141 from cgruber/fixWarnings

Add a SuppressWarnings annotation to suppress unchecked casts.