Casted variable proportion to double