Creates a new variable for the expression with type casting.