/me waves at Vranx
Welcome back!
Since the SetPoint call doesn't reference a frame to anchor it to, it will anchor the casting bar to the center of its parent. I don't remember what the parent is (though I would assume UIParent).
Just in case, try this:
CastingBarFrame:SetPoint("CENTER", UIParent, "CENTER", 0, 0)