Convert element to boolean