I\'m getting the above error on the ToList() line of the code below
if (emailReplyTo != null) { System.Collections.Generic.List replyto = ema
You can also do this without .toList, saves including an entire library for no real reason.
new List(array)