If (var is a number) {

Is there a way to test if var is a number? Like a really easy way that im not thinking of. Seems like a really simple problem, but im stumpped.