can still be done with some unchecked casting thou...
# reflect
d
can still be done with some unchecked casting though
(T::class as KClass<Any>).java as Class<T>