kevinmost
as?
as
inline fun <reified R : Any> Any?.cast(): R? = this as? R
list.firstOrNull()?.cast<Foo>()?.bar