valueOf

Utility function to get Visibility instance from given value