assert: .closeTo() verify value's type before assertion
Merge pull request #279 from mohayonao/fix-closeTo

fix: closeTo should check value's type before assertion