TextJustification C#

Hello,
I am attempting to set the the TextJustification using an input integer.
When attempting:
System.Enum.ToObject(Rhino.Geometry.TextJustification, someInteger);
I am getting the error; ‘TextJustification’ is a type, which is not valid in given context.

But if I am reading the docs correctly, TextJustification is a public enum so I am not sure why I am getting this error.

http://4.rhino3d.com/5/rhinocommon/html/T_Rhino_Geometry_TextJustification.htm

Any suggestions would be greatly appreciated.
Thanks,

How about this:

var just = System.Enum.ToObject(typeof(TextJustification), 2); // center

Dale,
Yes, that works.
Thanks,
Pete Schmidt