Type guard to check if a value is NOT a Promise.
The value type
The value to check
The value cast to type T if it's not a Promise
Type guard to check if a value is NOT a Promise.