Casting to Correct Object Type for Set Element Property (HumanUI)

How can I use Set Element Property for properties that require a certain object type?

For example, how can I make a “Font Weight” object?

This is the error I’m getting.

Something went wrong setting the property:
Object of type ‘System.String’ cannot be converted to type ‘System.Windows.FontWeight’.

Thank you!