Only `$cast(b, null)` should succeed, the others should fail.
`$cast(b, o)` should obviously fail.
`$cast(e, b)` should fail, because even though source could be cast to destination, `b` evaluates to `null`. The source expression is not the literal constant null, though.