check value type