Delegate type casting to cast type