printw_example: Fix build

Using std.conv rather than an ordinary cast for a bit more safety.  It rarely hurts to have the checking.