Fixed like... a lot of shit. Removed all of the casting problems the compiler was bitching about.