https://kotlinlang.org logo
r

russhwolf

10/17/2017, 1:46 PM
You can’t cast using a
Class
object like that, you have to use the actual type. In this case you want
copy as E
but then you also need to use
reified E
in the function declaration
👍 1