Class `Symfony\Component\Security\Acl\Domain\RoleSecurityIdentity` should be able to be created from every object implementing `RoleInterface`.