You need to think how will you liquidate it if needed, the market for those buying student accommodation would be a lot less than those looking to buy a house/apartment to live in.
Who pays for upkeep and repair, as I assume students would be transient so could be more damage or annual maintenance for best college year.
What's the return, where is it located, what are the net returns that then would be taxable etc
Would have to look at in overall portfolio, as if you wanted to sell up, I'd say its a slower process to find a buyer than alternative property investment.