How do I read an int from command line in Ballerina?
问题 any choice = io:readln("Enter choice 1 - 5: "); I cannot seem to cast the input to an int. Both check and match gives the same error var intChoice = <int>choice; match intChoice { int value => c = value; error err => io:println("error: " + err.message); } and c = check <int>choice; gives error: 'string' cannot be cast to 'int' I looked into https://ballerina.io/learn/by-example/type-conversion.html and also studied https://ballerina.io/learn/api-docs/ballerina/io.html#readln but no luck. What