Checking var for type