check memory is integer