Use correct cast; apparently we're using struct copies