Change type of a variable to avoid compiler warning