Updated where I use an obj but then was able to successfully cast to the
right object type.