These asserts are weak, and don't give a helpful message if they fail. `mdtraj.utils.arrays.ensure_type` is around for just this.