import ballerina/io; public function main() returns error? { string s = "1049"; int a = check int:fromString(s); io:println((a + 1).toString()); }