# Sparse matrix product causes unnecessary casting to "Any" thereby causing issues?

**URL:** <https://discourse.julialang.org/t/sparse-matrix-product-causes-unnecessary-casting-to-any-thereby-causing-issues/64565>\
**Category:** General Usage\
**Tags:** sparse\
**Created:** [July 13, 2021, 12:59pm UTC](https://discourse.julialang.org/t/sparse-matrix-product-causes-unnecessary-casting-to-any-thereby-causing-issues/64565 "2021-07-13T12:59:19Z")\
**Posts on this page:** 1\
**Showing post:** 11

<div class="post-metadata">

**Author:** ![cjdoris](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/cjdoris/32/213133_2.png) [@cjdoris](https://discourse.julialang.org/u/cjdoris)\
**Post date:** [July 15, 2021, 8:05am UTC](https://discourse.julialang.org/t/sparse-matrix-product-causes-unnecessary-casting-to-any-thereby-causing-issues/64565/11 "2021-07-15T08:05:21Z")

</div>

Why is the element type being widened at all? Why doesn’t it stay `Integer`?

---

_[View the full topic](https://discourse.julialang.org/t/sparse-matrix-product-causes-unnecessary-casting-to-any-thereby-causing-issues/64565)._
