Judging by the rest of the code, it looks like you're missing an opening brace ({
) after this line:
if (vLead.RecordTypeId == vRecordTypeId && vLead.IsConverted == true)
The closing brace immediately after the if
closes the function (since there was no block opened for the if
), causing the List
line to be in an invalid context.