{"database": "github", "table": "issue_comments", "rows": [["https://github.com/pydata/xarray/pull/5045#issuecomment-832871434", "https://api.github.com/repos/pydata/xarray/issues/5045", 832871434, "MDEyOklzc3VlQ29tbWVudDgzMjg3MTQzNA==", 1217238, "2021-05-05T17:23:27Z", "2021-05-05T17:23:27Z", "MEMBER", "> I'm not sure how to use this, because `np.can_cast` with unsafe casting mostly returns True, e.g. `np.can_cast(str, float, casting=\"unsafe\")==True`. The error that is implemented in the tests would not be caught then.\r\n\r\nOh, good point, thanks for checking.\r\n\r\n> But I could explicitly try to cast the new values to the datatype of the original values with `.astype`. Would that be an option?\r\n\r\nYes, I like this idea!", "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", null, 833778859]], "columns": ["html_url", "issue_url", "id", "node_id", "user", "created_at", "updated_at", "author_association", "body", "reactions", "performed_via_github_app", "issue"], "primary_keys": ["id"], "primary_key_values": ["832871434"], "units": {}, "query_ms": 0.3982619964517653}