Added method to extract type on deserialize for allow override