validate value type in setValue method