Assign different data type of a variable