I don't think you need to check for the specific dtype `'<M8[ns]'`. The beauty of asarray is that it only makes copies if necessary.