java generics compiler issue resolved

Eclipse accepts typecasts beween raw types and wildcard types but javac
doens't.