Sounds like some extension functions might be usef...
# getting-started
k
Sounds like some extension functions might be useful. The function would involve a cast but it's really simple and then you don't have to think about it anymore: http://try.kotlinlang.org/#/UserProjects/qp9sn4ne8n7re0u7jltp1qai4h/jv6ub29nl2sst3p5lqncjh8fb7