NUCCORE-1252 fixing toMemmberType implementation