Type Classes in Kotlin?

The similar topic is being discussed in this thread "Extension types" for Kotlin