解决方案:
强制转换:(DateTime?)
var time = db.T_SMS.Where(d => d.CreateUserID == 86 && d.SIMNO == userInfo.Phone && d.Content.Contains(msg)).Select(d =>(DateTime?) d.CreateTime).Max();