notes.user.toString ()! == req.user.id

toString() not valided 
Yucky Yak