Get the type of a value.