This is a common misinterpretation, there is more than one historical reference that suggests that Einstein intended the $$m$$ in the equation $$E = mc^2$$, to represent an object's rest mass.
The link below to a paper by Okun, gives a good historical explanation. It is only six pages and does not require any really heavy duty math.
The Concept of Mass
Letter from Albert Einstein to Lincoln Barnett, 19 June 1948. Einstein wrote in German; the letter was typed and sent in English. The highlighted passage in this excerpt says: "It is not good to introduce the concept of the mass M = m / (1 - v^2/c^2) of a moving body for which no clear definition can be given. It is better to introduce no other mass concept than the 'rest mass' m. Instead of introducing M it is better to mention the expression for the momentum and energy of a body in motion." (Reprinted by permission of the Hebrew University of Jerusalem, Israel.)
And then in the author's own words, a bit later...
$$E = mc^2$$
This is equation 1: Rest mass was one of Einstein's great discoveries.