Convert to a class.