denist
val y = listOf<InterfaceType>() val x = y.firstOrNull({ it -> it.value is AType })?.value as AType SomeConstructor(x.value)