Why not just `$vars = (array)$vars`?