kmizu
In this case lambda returns Unit, so Kotlin doesn’t try to return result of your expression
so lambda returns Unit, not 2 casted to Unit
2
Unit