fun test(v: Any?) { val x = (v as? String)?.let { it.length } }