To become a CTO you need to have a broad understanding of the "T"-part, the broader - the better. As for "C", besides from the generics (mentoring, leadership, planning, methods etc) tech-people have specific needs that only tech-people understand. Get good at understanding them. And for the "O"-part, you must have the ability to communicate ideas and "T" in such a way that non-tech people understand.