Added methods to cast special types