Entity was being cast to a coin without being checked if it was actually a coin first. derp.