convert type sizes to variables