I'm not sure the best way to do this (since perl normally casts automatically) - a redundant 0+$ditemid ? or is there a better way.