Cast values to desired type when possible, ignore validation for absent and null values