Converts to a UsernamePasswordCredentials or returns null (Nothing in Visual Basic) if the underlying credential can't be converted