1. A computer-implemented method for transforming data, the method comprising: providing a transformation directive in a data type definition statement, the transformation directive specifying one or more transformations to be applied to data before the data is stored in a variable of the data type being defined; interpreting the at least one transformation directive by a runtime framework; applying the transformation to data which is assigned to a variable of the data type that was defined; and storing the transformed data in the variable.