When you're writing a pilot, unless you already have an actor attached to the project, you're writing it with all the voices sort of in your head. Once you actually cast it, the actors become the voices of the characters, and you start to write for them and their strengths.