May be a bit cleaner to have the helper take in the string and do a TryParse, then return the value or -1. Also, it avoids first chance exceptions.