Actually, Ronny Cox started out playing nice guys for most of his early career. Then he was cast as a bad guy in RoboCop, but that was deliberate casting against type. But he was so good that it became his pigeonhole after that.....
The nature of typecasting according to Ricardo Montalban (who I recall did SOMETHING in Star Trek

I also love his "five stages of an actor."
- Who is Ricardo Montalbán?
- Get me Ricardo Montalbán.
- Get me a Ricardo Montalbán type.
- Get me a young Ricardo Montalbán.
- Who is Ricardo Montalbán?