Add function to convert to bool.