tyjka
11/29/2018, 2:47 AMfun Any.castTo(cast: Something) = this as cast
What should be in place of Something for this function to work?bdawg.io
11/29/2018, 3:48 AMinline fun <reified T> Any.castTo() = this as T
then consume it Bar().castTo<Foo>()