Add extension cast