Work around unsafe generics operation: no functional solution.