use casts to reduce compiler warnings (no object change)

Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
6 jobs for compiler-warnings in 1 minute and 21 seconds (queued for 4 seconds)