changing a method to convert arrays to float32

arr.astype() does not take  keyword arguments for numpy 1.6