Remove an unnecessary cast::transmute call.
auto merge of #1080 : Ms2ger/servo/get_jsobject-cast, r=jdm