Issue #3082859 by Krzysztof Domański, munish.kumar, xjm, samuel.mortenson: The AssertMailTrait should cast the data type to boolean in assertMailPattern