Markey cast his ballot in the Democratic primary for the US Senate seat formerly occupied by John Kerry.