This might look pretty dumb though but, how can I cast this:
Expression<?> myExpression = ...
to this so that it fits into the given parameter:
<Y extends java.lang.Comparable<? super Y>> gt(Expression<? extends Y> parameter)
I have no clue how to solve this though..
The simplest is to use erasure (which will give you a warning you can turn off)