Cast permissions to bool for the sake of other languages