Fix call to data_refs.astype

Prior to this commit, our code was crashing at that line. I'm told that that astype doesn't have a parameter named dtype.