Creates an immutable variable from a given expression.