damian
inline fun <reified T> Any?.castAs() = this as T
inline fun <reified T> Any?.optCastAs() = this as? T