Have a close look at this line:

return (int); numQuizzesTaken;

See anything out of place?

As an aside, why are you casting an int to an int? Isn't that bit redundant and repetitive?