Astype inplace
- [X] closes #43946
- [] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [X] This commit adds an argument to make it possible to convert the types of a dataframe inplace.
