CLN: use asanyarray to cast strings