Change type length from int to sizePT to prevent type conversion narrowing error