Fixes #20

The error is when casting TinyInt to bool, not the null check.