Adds a cast option to allow to cast as a content element for array based field.
Merge pull request #1102 from jails/bug/mongo-conditions-casting

Adds a cast option to allow to cast as a content element for array based field.