* Constellations are patterns: Constellations are simply patterns of stars that appear close together in the sky from our perspective on Earth. The stars that make up a constellation are actually at vastly different distances from us.
* Individual star distances: Each star in Cassiopeia has its own unique distance from Earth. Some are relatively close, while others are incredibly far away.
To find the distance to a specific star in Cassiopeia, you would need to look up that star's individual distance in a star catalog.