# Does any class NOT extend Object?

**URL:** <https://forum.kirupa.com/t/does-any-class-not-extend-object/296016>\
**Category:** flash\
**Created:** [September 8, 2009, 6:52pm UTC](https://forum.kirupa.com/t/does-any-class-not-extend-object/296016 "2009-09-08T18:52:51Z")\
**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:** [September 8, 2009, 6:52pm UTC](https://forum.kirupa.com/t/does-any-class-not-extend-object/296016/1 "2009-09-08T18:52:51Z")

</div>

Just as a technicality, is there ANY object (or anything that can be placed inside of a variable) that does not extend Object?

Even the “Class” object extends Object.

On a similar note, what is the difference between these two?

```auto
var unknownObject:Object = getItem();
var unknownObject:* = getItem();

```

I pretty much always use “:Object”, but is there any situation where it would be better to use the latter?

I also recently found out that there is a difference when using the “as”:

```auto
myObject = (unknownObject as Object); //Works
myObject = (unknownObject as *); //ERROR

```
