Kotlin handle a different type in constructor
lets say that for an example I have a data class that's like this
data class AB(a: String, b: String)
how do I make a constructor (or if there is any other way) handle a different type, for example if get an "a" variable as an Int and I want to handle it and covert it to a string?
Thanks!