unbreak the build with an ugly double-cast
correct fix