Suppress redundant cast.
Fix Java 6 build: AssertionError does not have a "cause" parameter in Java 6.