Make it eclipse compatible

proposal.
These two point of code make use of some smart generics, but Eclipse doesn't recognize it and reports compilation errors.
Nice thanks, I'll keep that in mind.

But I'm not convinced that _asList()_ would be faster here: why do you say that? (Nor very important for the purpose of the PR, just being curious)