I personally find the if-chaining much more readable. The case-switch would need a lot of redundant checks, e.g. `!isBool && ...` for the complete else branch below