Make it handle plain old cast too, for old assembly.