Simplified autoCastToken.
Rebuilt.