I tried it with a String it gave the same error.