Extract type from the name.