Allow test code to compile in gcc with -Wold-style-cast.