added shorter way to convert boolean