Ruckus
val value = (y.firstOrNull { it -> it.value is AType }?.value ?: throw Exception("Oops")) as AType