value(as:)

Returns the wrapped value if it is of type T, otherwise nil.

Declaration

func value<T>(as type: T.Type = T.self) -> T? where T : USDValueProtocol