Revert the code to set the matchCase parameter using Boolean.valueOf()

The new version in commit 04362d82c1ff9fdaee30b5a43baea1c39058ee0a uses the explicit cast to boolean which throws a ClassCastException. See comment below.