I'd suggest to design the proper code in Java firs...
# language-proposals
e
I'd suggest to design the proper code in Java first, if you feel more comfortable, then convert it to Kotlin. So far, I see that you have issues in making your design type-safe that have nothing to with Kotlin, so we are very off-topic in this thread.