Trying to fix this stupid intellij compile error.

Maybe hard-casting the lambda var will make a difference this time.