Used castToType in __toString method
Finished test for boolean