Use CompileStatic annotation for type checking