this will incorrectly cast "some error" to 0, should rather use Integer(...) and handle the exception on failure