Return type is changed

While calling from Java need way to determine if conversion was successful or not
Merge pull request #4 from solomax/patch-2

Return type is changed