Serialization: Use castTo instead of getAs in a few places to turn null pointer dereferences into assertions
Serialization: Use castTo instead of getAs in a few places to turn null pointer dereferences into assertions

JGiola/swift,karwa/swift,nathawes/swift,atrick/swift,karwa/swift,brentdax/swift,xwu/swift,danielmartin/swift,benlangmuir/swift,tjw/swift,aschwaighofer/swift,karwa/swift,ahoppen/swift,frootloops/swift,practicalswift/swift,zisko/swift,lorentey/swift,ahoppen/swift,karwa/swift,CodaFi/swift,brentdax/swift,shahmishal/swift,xedin/swift,aschwaighofer/swift,tjw/swift,JGiola/swift,xwu/swift,amraboelela/swift,xedin/swift,harlanhaskins/swift,brentdax/swift,danielmartin/swift,airspeedswift/swift,xedin/swift,shahmishal/swift,nathawes/swift,parkera/swift,jopamer/swift,hooman/swift,karwa/swift,shajrawi/swift,allevato/swift,devincoughlin/swift,shahmishal/swift,stephentyrone/swift,jmgc/swift,frootloops/swift,gribozavr/swift,xwu/swift,airspeedswift/swift,devincoughlin/swift,hooman/swift,shahmishal/swift,practicalswift/swift,shajrawi/swift,allevato/swift,practicalswift/swift,benlangmuir/swift,frootloops/swift,amraboelela/swift,natecook1000/swift,nathawes/swift,shahmishal/swift,zisko/swift,rudkx/swift,sschiau/swift,tkremenek/swift,aschwaighofer/swift,parkera/swift,tjw/swift,frootloops/swift,sschiau/swift,gregomni/swift,amraboelela/swift,allevato/swift,harlanhaskins/swift,apple/swift,lorentey/swift,apple/swift,roambotics/swift,practicalswift/swift,alblue/swift,nathawes/swift,tkremenek/swift,rudkx/swift,CodaFi/swift,aschwaighofer/swift,benlangmuir/swift,practicalswift/swift,shajrawi/swift,austinzheng/swift,roambotics/swift,atrick/swift,tjw/swift,jopamer/swift,gribozavr/swift,jmgc/swift,frootloops/swift,alblue/swift,brentdax/swift,xwu/swift,airspeedswift/swift,gregomni/swift,xedin/swift,frootloops/swift,danielmartin/swift,gregomni/swift,apple/swift,natecook1000/swift,ahoppen/swift,amraboelela/swift,brentdax/swift,rudkx/swift,glessard/swift,harlanhaskins/swift,devincoughlin/swift,sschiau/swift,karwa/swift,natecook1000/swift,jopamer/swift,allevato/swift,JGiola/swift,CodaFi/swift,brentdax/swift,jmgc/swift,lorentey/swift,austinzheng/swift,natecook1000/swift,danielmartin/swift,amraboelela/swift,stephentyrone/swift,rudkx/swift,gribozavr/swift,jmgc/swift,danielmartin/swift,practicalswift/swift,stephentyrone/swift,hooman/swift,nathawes/swift,lorentey/swift,benlangmuir/swift,aschwaighofer/swift,parkera/swift,amraboelela/swift,sschiau/swift,sschiau/swift,glessard/swift,tkremenek/swift,austinzheng/swift,CodaFi/swift,alblue/swift,alblue/swift,huonw/swift,natecook1000/swift,gregomni/swift,huonw/swift,sschiau/swift,allevato/swift,austinzheng/swift,atrick/swift,tkremenek/swift,alblue/swift,hooman/swift,xwu/swift,lorentey/swift,jckarter/swift,gribozavr/swift,apple/swift,aschwaighofer/swift,sschiau/swift,aschwaighofer/swift,jmgc/swift,huonw/swift,xedin/swift,gribozavr/swift,stephentyrone/swift,allevato/swift,devincoughlin/swift,apple/swift,CodaFi/swift,jckarter/swift,gregomni/swift,zisko/swift,stephentyrone/swift,devincoughlin/swift,devincoughlin/swift,JGiola/swift,ahoppen/swift,tjw/swift,rudkx/swift,natecook1000/swift,CodaFi/swift,parkera/swift,nathawes/swift,roambotics/swift,shahmishal/swift,ahoppen/swift,tkremenek/swift,harlanhaskins/swift,zisko/swift,gregomni/swift,practicalswift/swift,JGiola/swift,airspeedswift/swift,xedin/swift,huonw/swift,austinzheng/swift,natecook1000/swift,gribozavr/swift,roambotics/swift,lorentey/swift,harlanhaskins/swift,atrick/swift,amraboelela/swift,stephentyrone/swift,glessard/swift,shajrawi/swift,frootloops/swift,parkera/swift,shahmishal/swift,apple/swift,tjw/swift,xwu/swift,jckarter/swift,airspeedswift/swift,nathawes/swift,danielmartin/swift,alblue/swift,karwa/swift,zisko/swift,zisko/swift,atrick/swift,sschiau/swift,tjw/swift,huonw/swift,jopamer/swift,rudkx/swift,karwa/swift,devincoughlin/swift,harlanhaskins/swift,jckarter/swift,airspeedswift/swift,ahoppen/swift,atrick/swift,zisko/swift,xwu/swift,jopamer/swift,glessard/swift,jmgc/swift,jckarter/swift,xedin/swift,huonw/swift,xedin/swift,glessard/swift,shajrawi/swift,austinzheng/swift,jopamer/swift,jopamer/swift,hooman/swift,shajrawi/swift,roambotics/swift,jmgc/swift,gribozavr/swift,JGiola/swift,tkremenek/swift,hooman/swift,alblue/swift,parkera/swift,austinzheng/swift,CodaFi/swift,roambotics/swift,parkera/swift,airspeedswift/swift,practicalswift/swift,allevato/swift,harlanhaskins/swift,stephentyrone/swift,shajrawi/swift,tkremenek/swift,shajrawi/swift,glessard/swift,gribozavr/swift,danielmartin/swift,hooman/swift,devincoughlin/swift,benlangmuir/swift,jckarter/swift,jckarter/swift,huonw/swift,shahmishal/swift,lorentey/swift,benlangmuir/swift,parkera/swift,brentdax/swift,lorentey/swift