# Error broadcasting a function for a custom type

**URL:** <https://discourse.julialang.org/t/error-broadcasting-a-function-for-a-custom-type/54488>\
**Category:** New to Julia\
**Created:** [February 2, 2021, 8:31pm UTC](https://discourse.julialang.org/t/error-broadcasting-a-function-for-a-custom-type/54488 "2021-02-02T20:31:00Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![rdeits](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rdeits/32/286_2.png) [@rdeits](https://discourse.julialang.org/u/rdeits)\
**Post date:** [February 2, 2021, 8:43pm UTC](https://discourse.julialang.org/t/error-broadcasting-a-function-for-a-custom-type/54488/2 "2021-02-02T20:43:27Z")

</div>

You just need to tell the broadcast call to treat your `Actual365Fixed` as a scalar, rather than a collection, by wrapping it in a `Ref()`. See [Is there a reason a `MersenneTwister` value is not broadcastable? - #13 by stevengj](https://discourse.julialang.org/t/is-there-a-reason-a-mersennetwister-value-is-not-broadcastable/20774/13) for more info.

---

_[View the full topic](https://discourse.julialang.org/t/error-broadcasting-a-function-for-a-custom-type/54488)._
