Revert "Boolean throws ParseException directly."

This reverts commit 2395b0a387c1a1cb9a287288d0de192633845e3e.