// "Remove cast" "true" fun test(x: Any): Int { if (x is String) { return (x as String).length } return -1 }