added support for faster casting support.