Don't copy in convert(AbstractArray) when element type is the same
Merge pull request #6621 from JuliaLang/anj/convert

Don't copy in convert(AbstractArray) when element type is the same