Explicitly convert string types to dtype