#to_boolean methods for some core classes