Added casting support.