Cast fails seemingly random

must be spawning a weapon that does not inherit from your base weapon class. Do all your weapons inherit from the same class?