prefill value with correct type