Type conversions for bool and other types