Cast value to string before validating format