Extends classes to include the to_bool method