same comment though, if you're just going to pull it out, why not make it a parameter? In addition, shouldn't it be the caller's responsibility to make sure its the right type?