ENH: minor changes for numpy versions

In particular, be nice when the casting rules are configured to raise
errors