I used np.asanyarray because I wanted to let masked arrays through. But that could be handled with its own explicit clause.