Is it really required for java 8 users to add this cast in the user facing API?
Isn't there another way to solve this?