Added catching exceptions to value type assertions