I have a functional pipeline calling a method whose signature returns a base class of a specific class I know will be used at runtime. In Java, I can write something like this:
.map(ConcreteClass.class::cast) However, I can't figure out how (or if?) I can do this in Groovy (static compilation). My initial approach of `(ConcreteClass::cast)` causes the compiler to complain that there's no instance method `cast` on ConcreteClass, and I am not sure if there's a syntax to unambiguously communicate that "I want you to call `cast` on this specific class object, not look for a method named `cast` declared on this type".