# Any numba equivalent for casting a raw pointer to a StructRef, Dict, List etc?

**URL:** <https://numba.discourse.group/t/any-numba-equivalent-for-casting-a-raw-pointer-to-a-structref-dict-list-etc/351>\
**Category:** Support: How do I do ...?\
**Created:** [November 18, 2020, 3:22pm UTC](https://numba.discourse.group/t/any-numba-equivalent-for-casting-a-raw-pointer-to-a-structref-dict-list-etc/351 "2020-11-18T15:22:24Z")\
**Posts on this page:** 1\
**Showing post:** 28

<div class="post-metadata">

**Author:** ![DannyWeitekamp](https://yyz2.discourse-cdn.com/free1/user_avatar/numba.discourse.group/dannyweitekamp/32/144_2.png) [@DannyWeitekamp](https://numba.discourse.group/u/DannyWeitekamp)\
**Post date:** [January 24, 2023, 8:11pm UTC](https://numba.discourse.group/t/any-numba-equivalent-for-casting-a-raw-pointer-to-a-structref-dict-list-etc/351/28 "2023-01-24T20:11:25Z")

</div>

The cases where this helps seem situational. Below is with the callbacks set to `return a+b` with signature `f8(f8,f8)`

```python
takes_function: 0.12 ms
takes_address: 0.34 ms
takes_address_fast: 0.35 ms

```

---

_[View the full topic](https://numba.discourse.group/t/any-numba-equivalent-for-casting-a-raw-pointer-to-a-structref-dict-list-etc/351)._
