Ruby boolean type casting