Check if a variable is integer

how can I check if a variable is integer or not?