Expand description
Gets a value from a HashMap, and casts it to the type provided.
Example
let metadata = player.get_metadata().await?;
let title = match prop_cast::<String>(&metadata, "xesam:title") {
Some(t) => t.to_string(),
None => "Unknown title".to_string()
};