cast permission to string (in case it is a PermissionInterface) object