make convert func
Merge pull request #2 from waterlow/make-convert-func

make convert func