Add command for checking whether an object has a type by comparing typenames