updated Number type assertion to support async validation