title: Mongoose-Mongo {[CastError: Cast to Object failed for value "..." at path "..."
body: <p>I'm have this error:</p>
  
  <pre><code>{ [ValidationError: Contact validation failed]
    message: 'Contact validation failed',
    name: 'ValidationError',
    errors: 
     { Contact: 
        { [CastError: Cast to Object failed for value "ContactExample" at path "Contact"]
          message: 'Cast to Object failed for value "ContactExample" at path "Contact"',
          name: 'CastError',
          kind: 'Object',
          value: 'ContactExample',
          path: 'Contact',
          reason: undefined },
  }
  Same for ContactType
  </code></pre>
  
  <p>My code is the following:</p>
  
  <p>ContactSchema.js:</p>
  
  <pre><code>var mongoose = require('mongoose');
  var Schema = mongoose.Schema;
  
  var Contact = new Schema({
      Contact: {Type: String},
      ContactType: {Type: String}, 
      ContactOwner: {type: String} 
  
  });
  module.exports = mongoose.model("Contact", Contact);
  </code></pre>
  
  <p>Route:</p>
  
  <pre><code>app.post('/newcontact', isLoggedIn, function(req, res) {
      ContactModel.count({"Contact": req.body.Contact}, function(err, result){
          if (result&gt;0) res.send('Contact already taken');
          else{
              var newContact = new ContactModel();   
              console.log(req.body);
              newContact.ContactOwner = req.user.email;
              newContact.Contact = req.body.Contact;
              newContact.ContactType = req.body.ContactType;
              newContact.save(function(err){console.log(err);});
              res.send('Done');
          }
      });
  });
  </code></pre>
  
  <p>I tried filling the field "_id" and also doing ContactModel(ContactOwner: ......) but it still gives me that error</p>