wal: remove unneeded cast