Safely unbox to an option

An extra primitive that can be used to safely unbox to Some<T>. Useful for use with options where only a single type match is needed and a function is only applied if successful.