tryCastResult

fun <T> tryCastResult(result: String?, clazz: Class<T>): T?