You do not need to get the Tag object to get to the NDEF content, Android reads NDEf content per default and you can get it using
Parcelable[] messages = intent.getParcelableArrayExtra(NfcAdapter.EXTRA_NDEF_MESSAGES);
if (messages != null) {
NdefMessage[] ndefMessages = new NdefMessage[messages.length];
for (int i = 0; i < messages.length; i++) {
ndefMessages[i] = (NdefMessage) messages[i];
}
// process messages, usually only a single is present
}
Note that getting any particular tag technology class (MifareClassic) does not work if the tag is in fact not of that technology - that is what you are seeing. So you should first check which tag type you have.