Combine brown sugar, butter, cornstarch, milk, and vanilla in a saucepan; cook until slightly thickened, stirring constantly. Place apples and raisins in 10-inch baked pastry shell. Pour cooked mixture over the apples and sprinkle pecans over top. Bake for about 1 hour at 350°.