kotlin tostring().format code example Example: how to cast integer to string in kotlin var num = 10 val strNum = num.toString()