Checking for Value's type