Work around a cast problem with generics

Of course, Eclipse does not care. It would probably cast an iron into an
irony if you asked it, too.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>