Stop casting categories to models since they are static (bug 1079827)

https://bugzilla.mozilla.org/show_bug.cgi?id=1079827