# "Typacasting" an object

**URL:** <https://forum.kirupa.com/t/typacasting-an-object/310817>\
**Category:** flash\
**Created:** [June 20, 2010, 2:56pm UTC](https://forum.kirupa.com/t/typacasting-an-object/310817 "2010-06-20T14:56:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![IQAndreas](https://avatars.discourse-cdn.com/v4/letter/i/f08c70/32.png) [@IQAndreas](https://forum.kirupa.com/u/IQAndreas)\
**Post date:** [June 20, 2010, 2:56pm UTC](https://forum.kirupa.com/t/typacasting-an-object/310817/1 "2010-06-20T14:56:36Z")

</div>

I vaguely recall someone (Krilnon or wvxvw?) mentioning the difference between these two:

```auto
var myDO:DisplayObject = DisplayObject(event.currentTarget);

```

```auto
var myDO:DisplayObject = (event.currentTarget as DisplayObject);

```

But I can’t seem to find the thread for it. Is there any significant difference between the two?
