Teach it about objects! Tell it an object, then its type. If you mention the object, it will know what type it is!
My latest and (maybe) greatest project yet!