Kotlin : Unchecked return value