Returns a partial function that checks if the input value is of runtime type T and returns the value if it does. Doesn't take erased information into account.
Returns a partial function that checks if the input value is of runtime type T and returns the value if it does. Doesn't take erased information into account.