BUG: loc assignment with astype buggy, (GH5702)