How can I obtain a KClass from an object? I'm looking for the equivalent of Java's Object.getClass(). I've looked in the docs but haven't found anything, am I missing something?
This works but I can’t believe it’s the best way to do it:
foo.javaClass.kotlin