I have some code that loops through all the objects in the displaylist. Is there a way to tell is the object it found is a Bitmap?

I've tried things like :

1.) typeof(obj)
2.) if(obj is Bitmap)

But they don't seem to work.

Ideas?