Created attachment 662 [details]
Test case to reproduce
When trying to convert a SparseMatrix with non-default Index type to Matrix, the dense one changes its internal Index type.
Attached test case to reproduce.
This is already fixed in devel branch because rows/cols always return Index type.
Summary: Bug 1175: fix Index type conversion from sparse to dense.