Do you mean you have a key ( createdAt ) where all the values are timestamp types except for a few bad ones that are ObjectIds? Can you locate them using
$type = 7 or if they're strings type = 2?
e.g.
s01:PRIMARY> db.thetimes.save({id:1, created:new Timestamp()})
s01:PRIMARY> db.thetimes.save({id:2, created:ObjectId()})
s01:PRIMARY> db.thetimes.find()
{ "_id" : ObjectId("50f5ae2599902ea9daf51d4e"), "id" : 1, "created" : Timestamp(0, 0) }
{ "_id" : ObjectId("50f5ae2999902ea9daf51d50"), "id" : 2, "created" : ObjectId("50f5ae2999902ea9daf51d4f") }
s01:PRIMARY> db.thetimes.find({ created:{$type:7}})
{ "_id" : ObjectId("50f5ae2999902ea9daf51d50"), "id" : 2, "created" : ObjectId("50f5ae2999902ea9daf51d4f") }