Neos.Neos/Classes/TypeConverter/EntityToIdentityConverter.php
public function canConvertFrom($source, $targetType)
    {
        $identifier = $this->persistenceManager->getIdentifierByObject($source);
        return ($identifier !== null);
    }
public function canConvertFrom($source, $targetType)
    {
        $identifier = $this->persistenceManager->getIdentifierByObject($source);
        return ($identifier !== null);
    }
public function canConvertFrom ( $ source , $ targetType ) { $ identifier = $ this -> persistenceManager -> getIdentifierByObject ( $ source ) ; return ( $ identifier !== null ) ; }
Check if the given object has an identity.

@param object $source the source data
@param string $targetType the type to convert to.
@return boolean true if this TypeConverter can convert from $source to $targetType, false otherwise.
Check if the given object has an identity .