Let floatx and complexx use convert. Fix similar for sparse matrices.
Merge pull request #6078 from JuliaLang/anj/sparse2

Let floatx and complexx use convert. Fix similar for sparse matrices.