astype() takes no keyword arguments

Fixing an error in Travis tests: astype() takes no keyword arguments.