I\'m trying to conditionally set the return type of a function, based on a static value in the same type.
Given the following code, is it possible to have type checking w