Problem: zlist selftest is missing explicit casts and does not compile.

Solution: Added missing casts in zlist selftest.