Add a type check to mean1d