Polymer from at least one nonethylenic monomer having cationic group