BUG: Preserve column metadata with DataFrame.astype
- [X] closes #19920
- [X] tests added / passed
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [X] whatsnew entry

Follow-up to #18099