Work around the Eclipse compiler not fully erasing generic types.