Remove unnecessary function.

Since we expect boolean values, we can simply truncate them.