I've gotten away with a lot in my life. The older you get the more you realize you're not getting away with it, it's taking its toll somewhere. So you try not to put yourself in those situations. Part of the mysterious process called growing up. Some people do that better than others.
When actors get pigeonholed, that's their own doing to a large degree. Because if you do something that people like, obviously they're going to ask you to do it again. It's up to you to say no. If you're that insecure about working, you'll probably do what you're known to do.