target.c: Add a cast and change a type