Fix Types: boolean conversion returning always true