ValV
10/07/2018, 10:30 AMinline fun <reified T> convert(text: String): Any? {
return try {
text to T // something bad is happening here
} catch (e: Exception) {
null
}
}sandi
10/07/2018, 10:36 AMtext as TValV
10/07/2018, 10:42 AMtext.toInt(), if T is Int?gcx11
10/07/2018, 10:59 AMValV
10/07/2018, 2:32 PMwhen (T::class)?