Converting publisher to object