Set the type when constructing a new base