Also accept yes/no as boolean
Still over 5 LOC, but mor like Ruby