fun foo(arr: Array): Int { val result = (arr as Array)[0] arr : Array return result }