Internal types need to converted into boolean

Return values don’t work properly otherwise and all other code treats
these values as booleans.