Don't cast to upper-case Boolean; instead cast to the lowercase. Shouldn't need to rely on JVM autoboxing here.