valueOf

Utility function to get SkyType instance from given value.