# @inbounds equivalent for type assertions

**URL:** <https://discourse.julialang.org/t/inbounds-equivalent-for-type-assertions/89107>\
**Category:** General Usage\
**Tags:** performance, type\
**Created:** [October 22, 2022, 3:13pm UTC](https://discourse.julialang.org/t/inbounds-equivalent-for-type-assertions/89107 "2022-10-22T15:13:22Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![jd-foster](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jd-foster/32/35824_2.png) [@jd-foster](https://discourse.julialang.org/u/jd-foster)\
**Post date:** [November 8, 2022, 11:09am UTC](https://discourse.julialang.org/t/inbounds-equivalent-for-type-assertions/89107/2 "2022-11-08T11:09:03Z")

</div>

This occurred to me as related to your question:

> [@Unreasonable slow speed in numerical integration](https://discourse.julialang.org/t/unreasonable-slow-speed-in-numerical-integration/89910/2):
>
> Note also that your [argument-type and return-type declarations don’t impact performance](https://docs.julialang.org/en/v1/manual/functions/#Argument-type-declarations) and it is probably clearer to omit them.

See also: [Be aware of when Julia avoids specializing](https://docs.julialang.org/en/v1/manual/performance-tips/#Be-aware-of-when-Julia-avoids-specializing)

---

_[View the full topic](https://discourse.julialang.org/t/inbounds-equivalent-for-type-assertions/89107)._
