use bindeval to get the corrent type