I agree with Camila, you will have to listen to context because it is pronounced the same.
Also, usually you would not use casar without it being reflexive. (ella se casó con su novio ayer) whereas cazar is not relexive (Juan fue a cazar bestias en la arboleda)