fix #4681; error needed when convert returns the wrong type to ccall
Merge branch 'master' of github.com:JuliaLang/julia