`castToBoolean` is a function that might need some clean-up. Its naming doesn't match what it does.

If the input value is not a boolean or cannot be cast to a boolean it returns the input value, so you'd have to do something like:
```javascript
var acceptedTC = (OaeUtil.castToBoolean(req.body.acceptedTC) === true);
```

which seems like more code to express something simple (unless we change that castToBoolean method to only return Booleans)