Retrieving multiple types with Ferret

Hey,
I want to store multiple different types of items in Ferret. I can store them all fine but retrieval seems troublesome. When i get items of multiple types back in a result set, how can I figure out what type they are and process accordingly. Does Ferret have some way to retrieve the actual object back? That would be ideal.

Thanks,
Jim

Jim,