Allow CastExpression to cast objects as well.