juangamnik
08/07/2016, 7:48 AMas T
(implicit class parameter for reified generics): This can be done using Class<T>#cast(Object)
. Since the compiler of Kotlin can check whether this is used appropriately it should be safe (as all safety in Generics world depends on the Compiler in JVM).
I would like to write a proposal for that in KEEP … opinions?