Apply identifying `type` to validator casting errors

@vkarpov15 

Related to #2499 

This applies appropriate `err.errors.path.type` to signify casting errors as type `cast`.