cf581738c3
Previously it was like "null cannot be cast to MyObject" or "MyObject cannot be cast to null", because `KClass.qualifiedName` is `null` for local classes (including anonymous ones). Use `KClass.toString()` instead, for both object actual dynamic type and cast target type. This string representation is generally more meaningful for such cases, and contains useful details for local classes.