In transitive verbs, the participle may agree with the object in gender and number.
However, it's not mandatory: you can just use "sognato" or the singular masculine.
I use, though not systematically, "sognato" also for feminine and plural objects, and I am a native speaker living in Italy, so I wouldn't say it's less correct.