javac inconvertible types with generics workaround.