Modified canHaveAsObject()