Fixes type mismatch

Change return type to have an explicit "out" parameter for M10
Merge pull request #13 from MasterXen/patch-1

Fixes type mismatch (in Kotlin M10)