ata type. Otherwise, check that the casting is done properly. Non-regression test for: https://github.com/scikit-learn/scikit-learn/issues/28309 r