Allow objects that implement toDate to be cast

This means, for example, that I could pass in a Moment.js object (or any of my own objects that implement toDate) straight into waterline and, with this PR, it would be cast appropriately.

Just a nice developer-friendly addition :smile: