kotlin cast fix
Merge pull request #45 from vapolyakov/master

kotlin cast fix