For any triple (Mn,g,∇) consisting of a Riemannian manifold and a metric connection with skew-symmetric torsion we introduce an elliptic, second order operator Ω acting on spinor fields. In case of a reductive space and its canonical connection our construction yields the Casimir operator of the isometry group. Several non-homogeneous geometries (Sasakian, nearly Kähler, cocalibrated G2-structures) admit unique connections with skew-symmetric torsion. We study the corresponding Casimir operator and compare its kernel with the space of ∇-parallel spinors.