add version of Deserialize with Type parameter instead of generic