The magnetic hyperfine field, Bhf, has been determined for cadmium as an impurity element in Heusler alloys of the types Pd2MnY (Y=In,Sn,Sb) and PtMnY (Y=Sn,Sb) at a temperature of 77K. The measured fields were -19.4(1) T and -22.5(2) T for Cd in Pd2MnSn and Pd2MnSb, respectively, whereas the average field for Cd in Pd2MnIn (which is antiferromagnetic) was zero with a distribution of Delta Bhf=1.2(1) T. For Cd in PtMnSn and PtMnSb, positive fields were observed, +9.5(5) T and +16.1(1) T, respectively. The positive field can be explained if it is assumed that Cd atoms in these alloys are not going into Y positions as usual, but rather into interstitial or 'empty' positions in the lattice, giving a higher screening charge.