Added exception for object type