# \#nsproxy

**URL:** https://forums.swift.org/tag/nsproxy/1083.md

[Latest](https://forums.swift.org/latest.md) · [Categories](https://forums.swift.org/categories.md) · [Tags](https://forums.swift.org/tags.md)

---

## [Creating a proxy of an object and casting it as the object's type](https://forums.swift.org/t/creating-a-proxy-of-an-object-and-casting-it-as-the-objects-type/77453)

<div class="topic-metadata">

**Author:** [@flocked](https://forums.swift.org/u/flocked)\
**Replies:** 3\
**Last updated:** [January 26, 2025, 3:35am UTC](https://forums.swift.org/t/creating-a-proxy-of-an-object-and-casting-it-as-the-objects-type/77453 "2025-01-26T03:35:52Z")

</div>

Is it possible to create a proxy of a NSObject and casting it as the object's type. Specifically I want to create a similar behaviour as NSView's func animator() -\> Self which returns the view as proxy. The view returne…
