Created parse function for vertex type enum