I am working on a console application in Kotlin where I accept multiple arguments in main() function
main()
fun main(args: Array) { /
val i = "42".toIntOrNull()
Keep in mind that the result is nullable as the name suggests.