Added getObjectType method to Collection