Your class is permanent, but your talents can be reset.
Go and speak to your class trainer. There's a dialogue option reading "I wish to unlearn my talents" — pick it, pay the fee, and your spent talent points are returned for reallocating. The cost starts at 1 gold and rises each time you do it, so respec early and often rather than repeatedly at the top level.