Added more explicit casts to/from System.Net.Mail equivalents